let MS = require("./ms.js")
const request = require("./request.js")
const Error = require('./error')
const storage = require("./storage.js")
const {
    isString,
    isUndefined,
    isNumber,
    isBoolean,
    isArray,
    isObject
} = require('./dataType')

const sysUser = class sysUser {

    constructor() {

    }

    login(username, password) {
        let params = {
            username: username,
            password: password
        }
        return new Promise((resolve, reject) => {
            request("/login", "POST", params).then(res => {
                resolve(res.data)
            }).catch(err => {
                reject(err)
            })
        })
    }
}

module.exports = sysUser